Repository navigation
ux: 标签栏拖动增加视觉反馈 show feedback while dragging repository tabs - #2773
Open
VirgilMing wants to merge 1 commit into
Open
VirgilMing wants to merge 1 commit into
VirgilMing wants to merge 1 commit into
Conversation
VirgilMing
force-pushed
the
codex/sourcegit-tab-drag-feedback
branch
from
October 12, 2026 13:52
5c007ef to
5c5d9a9
Compare
VirgilMing
force-pushed
the
codex/sourcegit-tab-drag-feedback
branch
2 times, most recently
from
October 15, 2026 07:29
a29662f to
9e9f495
Compare
VirgilMing
force-pushed
the
codex/sourcegit-tab-drag-feedback
branch
5 times, most recently
from
October 30, 2026 14:04
61913c3 to
823b598
Compare
VirgilMing
force-pushed
the
codex/sourcegit-tab-drag-feedback
branch
from
November 12, 2026 12:30
823b598 to
b99ce96
Compare
VirgilMing
force-pushed
the
codex/sourcegit-tab-drag-feedback
branch
from
November 22, 2026 08:04
b99ce96 to
fad197d
Compare
Show a pointer-following title/icon preview, dim the dragged tab, and highlight the destination with an insertion marker matching the existing reorder behavior. Clear feedback on leave, cancellation, drop and detach. Match the tab Border style key and constrain preview titles to the available width with ellipsis and clipping. Include isolated rendering and lifecycle checks for long and short fixed-width titles, welcome tabs and variable-width tabs.
VirgilMing
force-pushed
the
codex/sourcegit-tab-drag-feedback
branch
from
November 26, 2026 10:59
fad197d to
0c597eb
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为仓库标签拖动增加视觉反馈,便于确认拖动项和落点:
覆盖层不拦截输入,重排沿用原生拖放和现有的
Launcher.MoveTab。沿用项目的 Avalonia 11.3.22 依赖。提供
tests/TabDragFeedback/控件夹具,使用隔离配置和现有 fontconfig 缓存的独立副本,输出日志与预览截图。本地验证(2026-11-26)
环境:Linux x64,.NET SDK 10.0.111,Avalonia 11.3.22。
git diff --check通过。headless 夹具直接调用反馈处理器;原生拖放与 Esc 取消另行通过原生输入检查。
运行与检查
--dotnet /path/to/dotnet可指定 SDK,--output DIRECTORY可指定日志与截图的父目录。在包含多个标签的窗口中,分别向左、向右拖动并释放,检查预览、落点提示与重排结果;再次拖动并按 Esc,确认标签顺序不变且反馈消失。固定宽度长名称应显示省略号,欢迎标签应保留对应图标。
Add visual feedback while dragging repository tabs so the dragged item and destination are clear:
The overlay does not intercept input. Reordering uses native drag-and-drop and the existing
Launcher.MoveTab. The project's Avalonia 11.3.22 dependencies are retained.The
tests/TabDragFeedback/control fixture uses isolated configuration and a private copy of the existing fontconfig cache, and produces logs and rendered previews.Local validation (2026-11-26)
Environment: Linux x64, .NET SDK 10.0.111, Avalonia 11.3.22.
git diff --checkpassed.The headless fixture invokes feedback handlers directly; native drag sessions and Escape cancellation were checked separately through native input.
Run and check
Use
--dotnet /path/to/dotnetto select the SDK and--output DIRECTORYto select the parent directory for logs and previews.In a window with several tabs, drag and drop in both directions and check the preview, destination feedback, and resulting order. Start another drag and press Escape: the order should remain unchanged and feedback should disappear. A long fixed-width title should use ellipsis, and a welcome tab should retain its corresponding icon.